package com.mifengs.mall.netWork.api;

import com.mifengs.mall.Constant;
import com.mifengs.mall.entity.ResponseInfo;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by lihaoqi on 2018/1/4.
 */

public interface OrderPayApi {

    @FormUrlEncoded
    @POST(Constant.ORDERPAY)
    Observable<ResponseInfo<String>> pay(
            @Header("cookie") String cookie,
            @FieldMap Map<String, String> map
    );
}
